package com.mairuide.datalog;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mairuide._frame.base.BaseRepository;
import com.mairuide._frame.base.BaseServiceProxy;

@Service
@Transactional
public class DataOperationDetailLogService extends BaseServiceProxy<DataOperationDetailLog> {
	
	@Resource
	private DataOperationDetailLogRepository dataOperationDetailLogRepository;
	
	@Override
	protected BaseRepository<DataOperationDetailLog> getBaseRepository() {
		return dataOperationDetailLogRepository;
	}
	/**
	 * 根据日志父表id查询日志详情信息
	 * @param parentLogId
	 * @return
	 */
	public List<DataOperationDetailLog> findByParentLogIdOrderByDetailId(Integer parentLogId){
		return dataOperationDetailLogRepository.findByParentLogIdOrderByDetailId(parentLogId);
	}
}
